<% content_for :css do %>
  <%= stylesheet_link_tag 'new_or_edit','infos_new_or_edit' %>
<% end %>
<% content_for :javascript do %>
  <script type="text/javascript" charset="utf-8">
    function tmp_save()
    {
      <%= remote_function :url => info_url(@info),
            :method => :put,
            :with => "$('new_or_edit_info_form').serialize()",
            :loading => "$('tmp_saving').innerHTML = '暂存中...'",
            :failure => "$('tmp_saving').innerHTML = '暂存成功！点击暂存资讯'",
            :success => "$('tmp_saving').innerHTML = '暂存成功！点击暂存资讯'" %>
    } 
  </script>>
<% end %>
<%= javascript_include_tag :ckeditor %>
<div class='new_or_edit'>
  <div class='title'>
    资讯-<%= @info.title %>
  </div>
  <div class='body'>    
  <dl>
    <dt>内容：</dt>
    <dd>
      <%= @info.content %>
    </dd>
  </dl>
  <dl>
    <dt>邮件-标题：</dt>
    <dd>
      <%= @info.email_title %>
    </dd>
  </dl>
  <dl>
    <dt>邮件-内容：</dt>
    <dd>
      <%= @info.email_content %>
    </dd>
  </dl>
  <dl>
    <dt>短信-内容：</dt>
    <dd>
      <%= h @info.sm_content %>
    </dd>
  </dl>
  </div>
  <div class='buttons'>
    <%= link_to_function "点击关闭", 'window.close()' , :class => :return %>
  </div>
</div>    